package com.pub.stripe.model;

public class StripeConstant {
    /**
     * pending      刚刚准备好订单;
     * chargeable   Source对象变成chargeable客户已授权和验证的付款后。
     * failed       Source对象未能成为收费为你的客户拒绝授权支付。
     * canceled     Source对象过期，并且不能用于创建电荷。
     * succeeded    收费成功，付款完成。
     * created      发送客户投诉，从Stripe余额中扣除争议金额。
     */


    public static final String PAY_STRIPE_STATUS_PENDING = "pending";
    public static final String PAY_STRIPE_STATUS_CHARGEABLE = "chargeable";
    public static final String PAY_STRIPE_STATUS_FAILED = "failed";
    public static final String PAY_STRIPE_STATUS_CANCELED = "canceled";
    public static final String PAY_STRIPE_STATUS_SUCCEEDED = "succeeded";
    public static final String PAY_STRIPE_STATUS_CREATED = "created";
    //授权完成，但用户余额不足
    public static final String PAY_STRIPE_STATUS_INSUFFICIENT_FUNDS = "insufficient_funds";
    //授权完成，订单收费金额大于支付宝支持的费用
    public static final String PAY_STRIPE_STATUS_INVALID_AMOUNT = "invalid_amount";
    //授权完成，创建收费订单失败
    public static final String PAY_STRIPE_STATUS_CHARGE_ERROR = "charge_error";

    //支付回调状态，支付成功的事件类型
    public static final String PAY_STRIPE_STATUS_CALL_BACK_SUCCESSED = "payment_intent.succeeded";

    //支付回调状态，支付方式附加事件（当前的支付模式不会返回该支付状态）
    public static final String PAY_STRIPE_STATUS_CALL_BACK_ATTACHED = "payment_method.attached";

    //支付回调状态，取消订单
    public static final String PAY_STRIPE_STATUS_CALL_BACK_CANCELED = "payment_method.canceled";

    //支付回调状态，支付失败
    public static final String PAY_STRIPE_STATUS_CALL_BACK_FAILED = "payment_method.payment_failed";
}
